Skip to content

feat(dev): scripts/dev.ps1 PowerShell wrapper (bypass Windows' WSL-relay bash.exe) - #85

Merged
khoks merged 1 commit into
mainfrom
chore/dev-ps1-wrapper
May 16, 2026
Merged

khoks merged 1 commit into
mainfrom
chore/dev-ps1-wrapper

Conversation

@khoks

@khoks khoks commented May 16, 2026

Copy link
Copy Markdown
Owner

Summary

When running `bash scripts/dev.sh` from cmd.exe or PowerShell on Windows, you may hit:

```
<3>WSL (xxx - Relay) ERROR: CreateProcessCommon:800: execvpe(/bin/bash) failed:
No such file or directory
```

That's Windows' built-in `C:\Windows\System32\bash.exe` routing into WSL. If you don't have a WSL distro installed, the relay fails.

This PR adds `scripts\dev.ps1`: a tiny PowerShell wrapper that locates Git for Windows' real `bash.exe` (Program Files / AppData / git-on-PATH) and runs `dev.sh` through it. All flags pass through (`--fresh`, `--down`, etc.).

DEV.md updated with:

  • both invocation forms (bash + ps1)
  • a troubleshooting bullet for the WSL-relay error

Test plan

  • `.\scripts\dev.ps1 --help` prints help text on Windows 11 + Git for Windows at the default location
  • `pnpm format:check` clean

…relay bash.exe

Windows ships C:\Windows\System32\bash.exe that routes 'bash' calls from cmd.exe
or PowerShell into WSL. If a WSL distro isn't installed, you get:

  <3>WSL (xxx - Relay) ERROR: CreateProcessCommon:800: execvpe(/bin/bash) failed:
    No such file or directory

The fix is to invoke Git for Windows' real bash.exe directly. dev.ps1 locates
it across the common install paths (Program Files, AppData, git-on-PATH) and
runs dev.sh through it with all flags passed through. Helpful error if Git
for Windows isn't installed at all.

DEV.md updated with both invocation forms + a troubleshooting note for the
WSL-relay error.

Tested: .\scripts\dev.ps1 --help works from PowerShell on Windows 11 with
Git for Windows installed at the default location.
@khoks
khoks merged commit 22e5d51 into main May 16, 2026
1 check passed
@khoks
khoks deleted the chore/dev-ps1-wrapper branch May 16, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant